home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / _ApplicationStyle.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  44 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ApplicationBackground;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _ApplicationStyle
  9.    {
  10.        
  11.       
  12.       public function _ApplicationStyle()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          var fbs:IFlexModuleFactory = param1;
  20.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Application");
  21.          if(!style)
  22.          {
  23.             style = new CSSStyleDeclaration();
  24.             StyleManager.setStyleDeclaration("Application",style,false);
  25.          }
  26.          if(style.defaultFactory == null)
  27.          {
  28.             style.defaultFactory = function():void
  29.             {
  30.                this.paddingTop = 24;
  31.                this.paddingLeft = 24;
  32.                this.backgroundGradientAlphas = [1,1];
  33.                this.horizontalAlign = "center";
  34.                this.paddingRight = 24;
  35.                this.backgroundImage = ApplicationBackground;
  36.                this.paddingBottom = 24;
  37.                this.backgroundSize = "100%";
  38.                this.backgroundColor = 8821927;
  39.             };
  40.          }
  41.       }
  42.    }
  43. }
  44.